// Author: combacsa@kaist.ac.kr
// http://www.jungol.co.kr/prog/Hanal/hanalView.php?qs_code=142

//#define COMPILE
#ifdef COMPILE

#include <fstream>
using namespace std;

int main() {
    ifstream in("input.txt");
    ofstream out("output.txt");
    
    int n;
    in >> n;
    
    for (int i = 0; i < n; i++) {
        for (int j = 0; j <= i; j++)
            out << "*";
        out << endl;
    }
    
    for (int k = n - 2; k >= 0; k--) {
        for (int l = 0; l <= k; l++)
            out << "*";
        out << endl;
    }
    
    
    in.close();
    out.close();
	return 0;
}

#endif
